﻿<!DOCTYPE html>

<!--<script src="../../../JS/jquery-1.8.3.js"></script>-->

<style>
      *{
            margin: 0;
            padding: 0;
        }
    #main{
        
        margin:0 auto;
        margin-top:10px;
        width:880px;
        height:auto;
    }
    #left {
        float:left;
        width:420px;
        height:600px;
    }

    #right {
        float:left;
        margin-left:20px;
        width:420px;
        height:600px;
    }
/*Table标签样式*/
    .tab{
        width:400px;
        height:auto;
        text-align:center;
    }
    .tab {
        font-family: verdana,arial,sans-serif;
        font-size:11px;
        color:#333333;
        border-width: 1px;
        border-color: #666666;
        border-collapse: collapse;
}
.tab th {
        border-width: 1px;
        padding: 8px;
        border-style: solid;
        border-color: #666666;
        background-color: #dedede;
}
.tab td {
        border-width: 1px;
        padding: 8px;
        border-style: solid;
        border-color: #666666;
        background-color: #ffffff;
}
/*滚动条样式*/
#main::-webkit-scrollbar {/*滚动条整体样式*/
        width: 10px;     /*高宽分别对应横竖滚动条的尺寸*/
        height: 1px;
    }
#main::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
        border-radius: 10px;
         -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
        background: #535353;
    }
#main::-webkit-scrollbar-track {/*滚动条里面轨道*/
        -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
        border-radius: 10px;
        background: #EDEDED;
    }
</style>
<span id="title" style="margin:0 auto;"></span>
    <div id="main" style="overflow-y:scroll;">
        <div id="left">
            <span id="jh" style="color:red;margin:0 auto;">非托(预收)</span><!--5--><br />
            <span id="errorJH"></span>
            <table cellpadding="0" cellspacing="0" id="JHTab" class="tab">
                <tr>
                    <th>序号</th>
                    <th>用户号</th>
                    <th>用户名</th>
                    <th>金额</th>
                </tr>
            </table>
        </div>
        <div id="right">
            <span id="jh" style="color:red;margin:0 auto;">转账(预收)</span><!--8--><br />
            <span id="errorCW"></span>
            <table cellpadding="0" cellspacing="0" id="CWTab" class="tab">
                <tr>
                    <th>序号</th>
                    <th>用户号</th>
                    <th>用户名</th>
                    <th>金额</th>
                </tr>
            </table>
        </div>
    </div>
   

<script>
    var type = getQueryParam("type");   //type ： 0 数据金额不一致 ， -2 数量不一致 ,1 通过，-3 用户号不同或数量不对
    //alert(type);
    $().ready(function () {
       //获取数据
        var time = $("#cZWYM").val();
        var year = time.substring(0, 4);
        var month = time.substring(4, 6);
        if (type=='1')
        {
            $.get(//非托
          '../../../ashx/QSSFZW/LCCWDataCheck.ashx',
          { type: 'ShowJH', year: year, month: month },
          function (e) {
              $(e).each(function (i) {
                  var tr = "<tr id=\"" + e[i].id + "\"><td>" + (i + 1) + "</td><td style=\"color:blue;\">" + e[i].id + "</td><td>" + e[i].name + "</td><td style=\"color:red;\">" + e[i].money + "</td></tr>";
                  $("#JHTab").append(tr);
              })
          }, "json")

            $.get(//转账
              '../../../ashx/QSSFZW/LCCWDataCheck.ashx',
              { type: 'ShowCW', year: year, month: month },
              function (e) {
                  $(e).each(function (i) {
                      var tr = "<tr id=\"" + e[i].id + "\"><td>" + (i + 1) + "</td><td style=\"color:blue;\">" + e[i].id + "</td><td>" + e[i].name + "</td><td style=\"color:red;\">" + e[i].money + "</td></tr>";
                      $("#CWTab").append(tr);
                  })
              }, "json")
        }
        if (type=='-2' || type=="-3")
        {
            $("#title").html("非托(预收) 转账(预收) 相对于不同的用户数量");
            $("#errorJH").html("相对于  转账(预收)  多出的用户");
            $("#errorCW").html("相对于  非托(预收)  多出的用户");
            $.get(//非托
         '../../../ashx/QSSFZW/LCCWDataCheck.ashx',
         { type: 'ShowJHId', year: year, month: month },
         function (e) {
             $(e).each(function (i) {
                 var tr = "<tr id=\"" + e[i].id + "\"><td>" + (i + 1) + "</td><td style=\"color:blue;\">" + e[i].id + "</td><td>" + e[i].name + "</td><td style=\"color:red;\">" + e[i].money + "</td></tr>";
                 $("#JHTab").append(tr);
             })
         }, "json")

            $.get(//转账
              '../../../ashx/QSSFZW/LCCWDataCheck.ashx',
              { type: 'ShowCWId', year: year, month: month },
              function (e) {
                  $(e).each(function (i) {
                      var tr = "<tr id=\"" + e[i].id + "\"><td>" + (i + 1) + "</td><td style=\"color:blue;\">" + e[i].id + "</td><td>" + e[i].name + "</td><td style=\"color:red;\">" + e[i].money + "</td></tr>";
                      $("#CWTab").append(tr);
                  })
              }, "json")
        }
        if (type=='0')
        {
            $("#title").html("非托(预收) 转账(预收) 用户金额不一致概览");
            $.get(//非托
         '../../../ashx/QSSFZW/LCCWDataCheck.ashx',
         { type: 'ShowJHNum', year: year, month: month },
         function (e) {
             $(e).each(function (i) {
                 var tr = "<tr id=\"" + e[i].id + "\"><td>" + (i + 1) + "</td><td style=\"color:blue;\">" + e[i].id + "</td><td>" + e[i].name + "</td><td style=\"color:red;\">" + e[i].money + "</td></tr>";
                 $("#JHTab").append(tr);
             })
         }, "json")

            $.get(//转账
              '../../../ashx/QSSFZW/LCCWDataCheck.ashx',
              { type: 'ShowCWNum', year: year, month: month },
              function (e) {
                  $(e).each(function (i) {
                      var tr = "<tr id=\"" + e[i].id + "\"><td>" + (i + 1) + "</td><td style=\"color:blue;\">" + e[i].id + "</td><td>" + e[i].name + "</td><td style=\"color:red;\">" + e[i].money + "</td></tr>";
                      $("#CWTab").append(tr);
                  })
              }, "json")
        }
    })
    //获取页面url参数
    function getQueryParam(name) {
        var obj = $('#dataCheckForm').dialog("options");
        var queryParams = obj["queryParams"];
        return queryParams[name];
    }

</script>
